package com.sport.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sport.mapper.AccountMapper;
import com.sport.po.Manager;
import com.sport.po.User;

@Service
public class AccountService {
	@Autowired
	private AccountMapper accountMapper;
	
	public User userLogin(User user){
		return accountMapper.userLogin(user);
	}
	
	public Manager managerLogin(Manager manager){
		return accountMapper.managerLogin(manager);
	}	
	
	
	public int userRegister(User user){
		return accountMapper.userRegister(user);
	}
	public int managerRegister(Manager manager){
		return accountMapper.managerRegister(manager);
	}
	
}
